import React, { useEffect, useState } from 'react';
import { get, post } from '@/utils/request';
import { useTranslation } from 'react-i18next';
// import { useAppDispatch, useAppSelector } from '@/store';
// import { setGlobalLocale } from '@/store/features/globalSlice';

type Props = {};
const Home: React.FC<Props> = (props) => {
  // num
  const [num, setNum] = useState(0);

  const onpress = () => {
    // a++
    // setNum(a++)
  };

  const { t } = useTranslation();
  // let { globalItem } = useAppSelector((state) => state.global);
  // const dispatch = useAppDispatch();

  useEffect(() => {
    // get({ url: '/prj/logined_data' });
    // axios.get('https://test.lymatrix.com/dch-server/prj/logined_data');
  }, []);
  return <div onClick={onpress}>{t('home')}</div>;
};

export default Home;
